Creating a GLB file containing variations

Hi,

I am looking to create a GLB file that contains two or more finish variations.

My current workflow is this:

Export all of the finish variations as individual GLB files from Keyshot.
Extract the texture files from all of them - using an GLB extractor (i.e. Free Binary glTF assets extractor (aspose.app))
Modify one of the GLB files with Model Editor (modelviewer.dev) by creating the variations in there.
Download the scene and remove the GLB from the .ZIP.

This workaround has an issue.

i.e. my GLB file size before modification is 8.5mb. The texture files extracted are 3.5mb.
After downloading the GLB from the Modelviewer edtior, the new file size is 26mb - after adding only a single variation. I would expect it to be closer to 12 mb.

Does anyone have a good workflow / solution for this?

Hi Marcus - I’ve checked with my colleagues and because this is a 3rd party program they couldn’t get it to work on their end. They suggested contacting that vendor as to why the file size is ballooning. As far as they were able to test it, they were not able to export a multi material GLB file, particularly if the goal is to use it outside of KeyShot. I’m sorry I don’t have a better answer for you.

Could it maybe be caused by the assets-extractor extracting the textures as a png file while they actually might be stored in the GLB file as a different image format like JPG?

I tried to find how images are stored within the GLB container but didn’t find a clear answer yet.